<?php
/**
 * 自定义相关配置信息
 * User: raisound
 * Date: 2021/10/28
 */
return [
    // 中文
    // 英文
    // 接口输出相关描述
    "describe"=>[
        "success"           =>  "ok",
        "error"             =>  "系统內部错误!",
        "server_failure"    =>  "服务器故障!",
        "interface_error"   =>  "请检查请求方式、接口名称、资源名称是否正确!",
        "format_error"      =>  "数据格式错误!",
        "request_error"     =>  "请求错误!",
        "server_error"      =>  "服务器错误!",
        "null_data"         =>  "未找到相关数据!",
        "add_error"         =>  "添加失败!",
        "up_error"          =>  "更新失败!",
        "modif_error"       =>  "获取失败!",
        "dele_error"        =>  "删除失败!",
        "exist"             =>  "数据已存在!",
        "id_error"          =>  "ID不合法!",
        "id_delete"         =>  "ID不合法或数据已删除!",
        "parameter_error"   =>  "参数错误!",
        "not_login"         =>  "登录失效!",
        "login_failed"      =>  "登录失败!",
        "login_successful"  =>  "登陆成功!",
        "exit_failed"       =>  "退出登录!",
        "non_existent"      =>  "账号不存在!",
        "restricted"        =>  "限制登陆!",
        "password_error"    =>  "密码错误!",
        "parameter_values"  =>  "参数值错误!",
        "operation_failed"  =>  "操作失败!",
        "captcha"=>[
            "invalid"=>     "无效ID",
            "error"=>     "验证码错误"
        ],
    ],

    //******************************************************************状态码描述
    "code"=>[
        "success"           =>  200,    //成功
        "error"             =>  400,    //错误
        "request_error"     =>  404,    //请求错误
        "server_error"      =>  500,    //服务器错误
        "resources_error"   =>  400,    //资源不存在
        "not_login"         =>  303,     //登录失效
        "auth"=>401,    // token失效
        "user_is_register"  =>  -3,     //用户已存在
        "non_existent"      =>  101,    // 账号不存在
        "password_error"    =>  102,    //密码错误
        "restricted"        =>  103,     //限制用户登陆
        "interface_error"   =>  400,    //请求接口错误
    ],

    //******************************************************************头部信息描述
    "head"=>[
        "token"=>'x-token', // token标识
    ],

    //******************************************************************公共数据返回
    "data"=>[
        "null"  =>  [],
    ],

    //******************************************************************mysql相关配置
    "mysql"=>[
        "table_pedding" =>0,	//待审核
        "table_normal" => 1,		//正常
        "table_delete" =>99,	// 删除
    ],
    // 网站相关配置
    "siteConfig"=>[
        'siteName' => 'siteName',
        'version'  => 'v1.0.0',
        'cdnUrl'   => '//localhost:8000',
        'apiUrl'   => 'https://buildadmin.com',
        'upload'   => [
            'maxsize'=>10485760,
            'mimetype'=>"jpg,png,bmp,jpeg,gif,webp,zip,rar,xls,xlsx,doc,docx,wav,mp4,mp3,txt",
            'mode'=>"local",
            'savename'=>"/storage/{topic}/{year}{mon}{day}/{filename}{filesha1}{.suffix}"
        ],
    ],
    "resource_address"=>'http://gcspider.raisound.com:81/data_display_api/'
];
